//
//  BSRequest.h
//  PhotographyStudi
//
//  Created by 叶一枫 on 2017/5/22.
//  Copyright © 2017年 叶一枫. All rights reserved.
//

#import <Foundation/Foundation.h>

/*
 网络：封装AFNetworking
 */

typedef void(^BSBlock)(BSRequestMode *RequestMode);

@interface BSRequest : NSObject

+(BSRequest*)shareBSRequest;

//普通post请求
-(void)postMessageWithUrl:(NSString*)url parameter:(NSDictionary*)parameter requestBlock:(BSBlock)requestBlock;

//附件post请求
-(void)postFileWithUrl:(NSString*)url parameter:(NSDictionary*)parameter fileDic:(NSDictionary*)fileDic block:(BSBlock)requestBlock;


//普通get请求
-(void)getMessageWithUrl:(NSString*)url parameter:(NSDictionary*)parameter block:(BSBlock)requestBlock;;

//附件get请求
-(void)getFileWithUrl:(NSString*)url parameter:(NSDictionary*)parameter fileDic:(NSDictionary*)fileDic block:(BSBlock)requestBlock;;


//下载文件
-(void)downLoadFile:(NSString*)url parameter:(NSDictionary*)parameter fileDic:(NSDictionary*)fileDic ;

@end
